<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--><html lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">

<!-- Viewport Metatag -->
<!-- <meta name="viewport" content="width=device-width,initial-scale=1.0"> -->

<!-- Plugin Stylesheets first to ease overrides -->

<!-- Required Stylesheets -->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/bootstrap/css/bootstrap.min.css" media="screen">

<script type="text/javascript" src="__PUBLIC__/js/jquery-2.1.4.min.js"></script>


<style type="text/css">


	body{

		width: 1200px;
		/*height: 300px;*/
	}

	#sel{

		width: 174px;
		
		
	}




</style>
</head>

<body>
	<center>
		<div class="all">
			<div class="container">
			<div class="row">
				<div class="col-md-10">
						<div class="panel panel-primary">
						  <div class="panel-heading">添加楼层</div>
						  <div class="panel-body">
						   
						  </div>
						  	<form action="{:U('Admin/Floor/insertDetail',array("max_id"=>$val["max_id"],"id"=>$val["id"]))}" method="post" id="form1"  enctype="multipart/form-data">
						  		<table class="table" id="myTable">
								 <table class="table">
									
									<tr>
										<th>楼层名称：</th>
										<td>
										<select name="floor_id" id="">
											<volist name="data" id="vo">
											<option value="{$vo.id}">{$vo.floor_name}</option>
											</volist>	
										</select>
										</td>
									</tr>
									<tr>
										<th>图片:</th>
										<td><span class ="btn btn-info">
										<input type="file" name="img" id="" />添加图片</span></td>
										<!-- <td><img src="" alt="" id=""> -->
										</td>
									</tr>
									<tr>
									<td>
										<input type="hidden" name="max_id" value="{$_GET['max_id']}">
									</td>
										<td>
											<button type="submit"  class="btn btn-primary">添加</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						   					<button  id="btn1"  type="reset" class="btn btn-danger" id="btn1">重置</button>
										</td>
									</tr>
								 </table>					   	
						  	</form> 
						  </div>
				</div>
			</div>
		</div>
	</div>	
	</center>

		

</body>
</html>
<script>
	$(function(){

		$('#btn1').click()
		{

		$('#form1')[0].reset();
		}

		

	

	})
</script>
